package com.varian.redis.message;

import org.springframework.data.redis.listener.Topic;

import java.util.List;

/**
 * @author ben
 * @since 2024/7/22
 */
public interface RedisMessageDelegate<T> {

    List<Topic> getTopic();

    void onMessage(String topic, T message);

}
